package day8.pack2;

public enum CarEnum {
    BKSW("别克商务GL8", 600),
    // 等价于class：CarEnum BKSW = new CarEnum("别克商务GL8", 600)
    BMW550I("宝马550i", 500),
    // 等价于class：CarEnum BMW550I = new CarEnum("宝马550i", 500)
    BKLY("别克林荫大道", 300);

    private String carName;
    private int carPrice;

    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }

    public int getCarPrice() {
        return carPrice;
    }

    public void setCarPrice(int carPrice) {
        this.carPrice = carPrice;
    }

    CarEnum(String carName, int carPrice) {
        this.carName = carName;
        this.carPrice = carPrice;
    }


}
